package tests;
import org.junit.After;
import org.junit.Test;
import pagelib.*;

public class macyshometest {
	
     MacysHomePage mh= new MacysHomePage();
     AddCart ac=new AddCart();
	HomeCategory hc= new HomeCategory();
	@Test
	public void testHomeOpen()
	{
		mh.openHome();
		
	}
	
	@Test
	public void testMacysHome()
	{
		mh.openHome();
		 mh.gotofortheHome();
		hc.verifyTitle();
		
		
	}
	
	@Test
	public void testbedbath()
    {
		mh.openHome();
		mh.gotobedbath();
		//hc.verifyTitle();
	}
	@Test
	public void selecthomecatogery()
	{
		mh.openHome();
		mh.gotofortheHome();
		hc.navigateForTheHome("link=Bed & Bath");
		hc.navigateForTheHome("link=Bath Towels");
		ac.selectitem("link=Martha Stewart Collection Bath Towels, Plush Collection");
		ac.selectcolor("//ul[@id='colorList601854']/li[4]/img");
		//ac.quantity("//select[contains(id(),'memberProductQty')]","4");
		ac.quantity("//div[@id='memberProdQty']/select", "4");
		
	}

	@After
	public void tearDown()
	{
	hc.closeBrowser();
	}
	
}



